package cn.com.hp.feature.mapper;

import cn.com.hp.feature.domain.dto.CommunityAndMenuParamDTO;
import cn.com.hp.feature.domain.dto.CommunityInfoDTO;
import cn.com.hp.feature.domain.dto.MenuInfoDTO;
import cn.com.hp.feature.domain.entity.CommunityInfo;
import cn.com.hp.feature.domain.entity.MenuInfo;
import cn.com.hp.feature.domain.vo.CommunityMenuVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: hjz
 * @since: 2022/8/29
 * @description:
 */
@Mapper
public interface CommunityInfoMapper extends BaseMapper<CommunityInfo> {
    List<CommunityInfo> selectCommunityList(@Param("param") CommunityInfo menuInfo);
    Page<CommunityInfo> selectCommunityPageByRequest(Page<CommunityInfo> page, @Param("param") CommunityInfoDTO communityInfoDTO);

    /**
     * 条件查询社区菜单
     * @param param
     * @return
     */
    List<CommunityMenuVO> communityAndMenulist(@Param("param") CommunityAndMenuParamDTO param);

    Page<CommunityMenuVO> selectCommunityAndMenuPage(Page<CommunityMenuVO> page, @Param("param") CommunityAndMenuParamDTO param);


}
